package com.cos.hospital.ui.record.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.cos.hospital.R;
import com.cos.hospital.model.bean.TemplateListBean;

import java.util.List;

/**
 * @Description: 模板
 * @Author: Kosmos
 * @Date: 2018年09月22日 20:52
 * @Email: KosmoSakura@foxmail.com
 */
public class AdapterTemplate extends BaseQuickAdapter<TemplateListBean.ItemsBean, BaseViewHolder> {

    public AdapterTemplate(@Nullable List<TemplateListBean.ItemsBean> data) {
        super(R.layout.item_template, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, TemplateListBean.ItemsBean item) {
        helper.setText(R.id.temp_m_text, item.getFldName());
        helper.setText(R.id.temp_name, item.getFldContent());
    }
}
